
$(function () {
    sidebar.$mount("#sidebar");
})

let sidebar = new Vue({
    //el : '#nav',
    data : {

        showArrowDiv: true,//是否显示箭头
        isCollapse: true,
        isActive: true,//控制箭头样式
    },
    methods : {
        handleOpen (key, keyPath) {
            console.log(key, keyPath)
        },
        handleClose (key, keyPath) {
            console.log(key, keyPath)
        },
        handleSelect(key, keyPath) {
            console.log(key, keyPath);
        },
        toggleCollapse () {
            this.isCollapse = !this.isCollapse
            this.isActive = !this.isActive
        },
    },
    beforeMount (){//页面挂载之前
    },
    mounted () {
    }
});
